package com.ruoyi.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.order.domain.TicketOrderInfo;
import com.ruoyi.order.mapper.TicketOrderInfoMapper;
import com.ruoyi.order.service.ITicketOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 影票订单信息Service业务层处理
 *
 * @author HHAOYU
 * @date 2020-12-18
 */
@Service
public class TicketOrderInfoServiceImpl extends ServiceImpl<TicketOrderInfoMapper, TicketOrderInfo> implements ITicketOrderInfoService {
    @Autowired
    private TicketOrderInfoMapper ticketOrderInfoMapper;

    /**
     * 查询影票订单信息
     *
     * @param id 影票订单信息ID
     * @return 影票订单信息
     */
    @Override
    public TicketOrderInfo selectTicketOrderInfoById(Long id)
    {
        return ticketOrderInfoMapper.selectTicketOrderInfoById(id);
    }

    /**
     * 查询影票订单信息列表
     *
     * @param ticketOrderInfo 影票订单信息
     * @return 影票订单信息
     */
    @Override
    public List<TicketOrderInfo> selectTicketOrderInfoList(TicketOrderInfo ticketOrderInfo)
    {
        return ticketOrderInfoMapper.selectTicketOrderInfoList(ticketOrderInfo);
    }

    /**
     * 新增影票订单信息
     *
     * @param ticketOrderInfo 影票订单信息
     * @return 结果
     */
    @Override
    public int insertTicketOrderInfo(TicketOrderInfo ticketOrderInfo)
    {
        return ticketOrderInfoMapper.insertTicketOrderInfo(ticketOrderInfo);
    }

    /**
     * 修改影票订单信息
     *
     * @param ticketOrderInfo 影票订单信息
     * @return 结果
     */
    @Override
    public int updateTicketOrderInfo(TicketOrderInfo ticketOrderInfo)
    {
        return ticketOrderInfoMapper.updateTicketOrderInfo(ticketOrderInfo);
    }

    /**
     * 批量删除影票订单信息
     *
     * @param ids 需要删除的影票订单信息ID
     * @return 结果
     */
    @Override
    public int deleteTicketOrderInfoByIds(Long[] ids)
    {
        return ticketOrderInfoMapper.deleteTicketOrderInfoByIds(ids);
    }

    /**
     * 删除影票订单信息信息
     *
     * @param id 影票订单信息ID
     * @return 结果
     */
    @Override
    public int deleteTicketOrderInfoById(Long id)
    {
        return ticketOrderInfoMapper.deleteTicketOrderInfoById(id);
    }
}
